Reducer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 9
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A test 0 3 2
A _test 0 3 1
1
import PlumbingReducerClass from '../PlumbingReducerClass'
2
3
4
it('test action type', () => {
0 ignored issues
show
Bug introduced by
The variable it was not defined.
Loading history...
5
  class Reducer {
6
    static test(state) {
7
      return state
8
    }
9
10
    static _test(state) {
11
      return state
12
    }
13
  }
14
15
  PlumbingReducerClass('test')(Reducer)
16
17
  expect(Reducer.test.actionType).toEqual('TEST__TEST')
0 ignored issues
show
Bug introduced by
The variable expect was not defined.
Loading history...
18
  expect(Reducer._test.actionType).toBeUndefined()
0 ignored issues
show
Bug introduced by
The variable expect was not defined.
Loading history...
19
})
20